package carPerson;

/**
 * @author Dev-1
 *
 */
public class SportCar extends Car {
	private boolean isCabriolet;
	private double price;
	
	void switchTurbo(boolean x){
		if(x=true){
		System.out.println("Turbo");
		}
	}
	
	@Override
	void startEngine(){
		super.startEngine();
		switchTurbo(true);
	}

	public boolean isCabriolet() {
		return isCabriolet;
	}

	public void setCabriolet(boolean isCabriolet) {
		this.isCabriolet = isCabriolet;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}
	
	

}
